import "./assets/main.css";

import { createApp } from "vue";

import pinia from '@/stores/index'

import App from "./App.vue";
import router from "./router";
import { kkx } from "./views/use/install.js";
const app = createApp(App);

import ButtonCounter from "./views/component/ButtonCounter.vue";
app.component("ButtonCounter", ButtonCounter);

app.use(kkx, {
  nba: {
    Boston: "凯尔特人",
    Dallas: "独行侠",
  },
});

app.use(pinia);
app.use(router);
// app.use(router);
app.config.globalProperties.kkx = (err) => {
  console.log("错误", err);
  /* 处理错误 */
};
app.mount("#app"); //返回根组件实例而非应用实例

